DEBUGGING 4: This program does not work the way we want it to! It has a logic error and we need to fix it!

RULE: Remember, if we want an if statement to occur WITHIN a loop, we need to indent it.

  • Click Run and look at the stage to see what's wrong.
  • Debug the program so the blue shapes are also sorted.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)